prepare machine